"""
@Time: 2021/1/25 下午 3:46
@Author: jinzhuan
@File: ace2005.py
@Desc: 
"""
from cognlp.io.loader.ner.ace2005 import ACE2005NerLoader
from cognlp.io.processor.ner.ace2005 import ACE2005NerProcessor


loader = ACE2005NerLoader()
train_data, dev_data, test_data = loader.load_all('../../../../cognlp/data/ner/ace2005/data')
processor = ACE2005NerProcessor(label_list=loader.get_labels(), path='../../../../cognlp/data/ner/ace2005/data')
train_datable = processor.process(train_data)
train_datable.save_table('../../../../cognlp/data/ner/ace2005/data/train_data.json')
dev_datable = processor.process(dev_data)
dev_datable.save_table('../../../../cognlp/data/ner/ace2005/data/dev_data.json')
test_datable = processor.process(test_data)
test_datable.save_table('../../../../cognlp/data/ner/ace2005/data/test_data.json')
print(1)
